import request from '@/utils/request';

export async function getDeFileByPage (params: any) {
    return request('/api/device/getDeFileByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addDeFile (params: any) {
    return request('/api/device/addDeFile', {
    method: 'POST',
    data: params,
  });
}

export async function updateDeFile (params: any) {
    return request('/api/device/updateDeFile', {
    method: 'POST',
    data: params,
  });
}

export async function delDeFile (params: any) {
    return request('/api/device/delDeFile', {
    method: 'POST',
    data: params,
  });
}


export async function exportDeFile(params: any) {
    return request('/api/device/exportDeFile', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getDeFileByPage, addDeFile, updateDeFile, delDeFile, exportDeFile }
